package com.business.etl.flow.log;

import com.common.log.Logger;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.sql.Connection;

/**
 * 描述：
 * 持久化日志处理实体
 * @author xianggj
 * @Date 2021/10/25 18:10
 **/
@Slf4j
@Component
@Data
public class PersistenceLogger implements Logger {

    private Connection connection;

    /**
     * 流程唯一标识
     */
    private String flowId;
    /**
     * 流程唯一标识
     */
    private String flowName;

    /**
     * 节点唯一标识
     */
    private String nodeId;

    /**
     * 节点名称
     */
    private String nodeName;

    @Override
    public void info(String msg) {
        System.out.println(msg);
    }

    @Override
    public void error(String msg) {

    }

    @Override
    public void warn(String msg) {

    }

    @Override
    public void debug(String msg) {

    }

    @Override
    public void fatal(String msg) {

    }

    @Override
    public void release() {

    }

    @Override
    public void info(String format, Object... args) {

    }

    @Override
    public void error(String format, Object... args) {

    }

    @Override
    public void debug(String format, Object... args) {

    }

    @Override
    public void fatal(String format, Object... args) {

    }

    @Override
    public void warn(String format, Object... args) {

    }
}
